from utils.handle_path import PollyPath
import pandas
from typing import List
import xlwings as xw
def get_excel_case_data(excel_filename,
                        rows=None,
                        columns:List=None,
                        sheetname=0,):
    df = pandas.read_excel(PollyPath.datas_path / excel_filename,
                           #usecols=columns,
                           sheet_name=sheetname)
    if rows:
        return df[df.模块.isin(rows)][columns].values
    else: return df.values

if __name__ == '__main__':
    pass